home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource4 / 270_01 / apply.h < prev    next >
Text File  |  1979-12-31  |  896b  |  49 lines

  1. /**
  2.  
  3.     APPLY.H
  4.     
  5.     Header file for APPLY.C
  6.     
  7. **/
  8.  
  9. /* Constant Values */
  10. #ifndef TRUE
  11. #define TRUE        1
  12. #endif
  13. #ifndef FALSE
  14. #define FALSE        0
  15. #endif
  16.  
  17. #define MAXLINE        256
  18.  
  19. /* Data Types */
  20.  
  21. typedef int BOOL ;
  22.  
  23. typedef struct _eline
  24. {
  25.     int linenum ;        /* line number in file */
  26.     char *text ;        /* text for the line */
  27.     struct _eline *prev;    /* previous line of text */
  28.     struct _eline *next;    /* next line of text */
  29. }
  30. ELINE ;
  31.     
  32.  
  33. /**
  34.  
  35.     Function Declarations
  36.  
  37. **/
  38.  
  39. static ELINE *AddNode(ELINE *,char *,int);
  40. static ELINE *DeleteNode(ELINE *);
  41. static int ReadFile(FILE *,ELINE **,ELINE **);
  42. static void DoDelete(int ,int ,ELINE **,ELINE **);
  43. static void DoAdd(int ,ELINE **,ELINE **,ELINE **);
  44. static void DoChange(int ,int ,ELINE **,ELINE **,ELINE **);
  45. static void ParseDelta(ELINE **,ELINE **,ELINE **);
  46. static void banner(void);
  47. void main(int,char **) ;
  48.  
  49.